package com.lagou.edu.service;

import com.lagou.edu.pojo.LagouToken;

public interface ClientService {

    // 生成token方法
    public String generateToken(String email, String pwd);


    // 保存email和token
    public LagouToken saveEmailToken(String email, String token);


    // 验证注册
    public boolean isRegistered(String email);


    // 验证登录
    public String validateUser(String email, String password);


    // 获取邮箱
    public String getEmailByToken(String token);


    // 获取email对应的验证码
}
